/**
 * BIM资料管理
 */
import request, { post } from '@/utils/request'
import { unionApiUrl } from '../config'
const PREFIX = unionApiUrl + '/bimFullPartLedger/'
const PREFIXTWO = unionApiUrl + '/bimTrainLedger/'
const PREFIXTHREE = unionApiUrl + '/bimPersonnelObtainEvidenceLedger/'
const PREFIXFOUR = unionApiUrl + '/bimInspectRecord/'

/**
 * @description 获取BIM专兼职台账列表
 */
export function getPageBimFullPartLedger(data) {
  return request({
    url: `${PREFIX}getPageBimFullPartLedger`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM专兼职台账信息
 */
export function insertBimFullPart(data) {
  return request({
    url: `${PREFIX}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 批量添加BIM专兼职台账信息
 */
export function insertBimFullPartLedgerBatch(data) {
  return request({
    url: `${PREFIX}insertSelectiveBatch`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM专兼职台账信息
 */
export function updateBimFullPart(data) {
  return request({
    url: `${PREFIX}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM专兼职台账信息
 */
export function getBimFullPartLedgerById(params) {
  return request({
    url: `${PREFIX}getBimFullPartLedgerById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM专兼职台账信息
 */
export function deleteBimFullPart(params) {
  return request({
    url: `${PREFIX}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description 获取BIM培训台账列表
 */
export function getPageBimTrainLedger(data) {
  return request({
    url: `${PREFIXTWO}getPageBimTrainLedger`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM培训台账信息/bimTrainLedger/insertSelective
 */
export function insertBimTrain(data) {
  return request({
    url: `${PREFIXTWO}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 批量添加BIM培训台账信息
 */
export function insertBimTrainBatch(data) {
  return request({
    url: `${PREFIXTWO}insertSelectiveBatch`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM培训台账信息
 */
export function updateBimTrain(data) {
  return request({
    url: `${PREFIXTWO}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM培训台账信息
 */
export function getBimTrainLedgerById(params) {
  return request({
    url: `${PREFIXTWO}getBimTrainLedgerById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM培训台账
 */
export function deleteBimTrain(params) {
  return request({
    url: `${PREFIXTWO}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description 获取BIM人员取证台账列表
 */
export function getPageBimPersonnelObtainEvidenceLedger(data) {
  return request({
    url: `${PREFIXTHREE}getPageBimPersonnelObtainEvidenceLedger`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM人员取证台账
 */
export function insertBimPersonnelObtainEvidenceLedger(data) {
  return request({
    url: `${PREFIXTHREE}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 批量添加BIM人员取证台账
 */
export function insertBimPersonnelObtainEvidenceLedgerBatch(data) {
  return request({
    url: `${PREFIXTHREE}insertSelectiveBatch`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM人员取证台账
 */
export function updateBimPersonnelObtainEvidenceLedger(data) {
  return request({
    url: `${PREFIXTHREE}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM人员取证台账信息
 */
export function getBimPersonnelObtainEvidenceLedgerById(params) {
  return request({
    url: `${PREFIXTHREE}getBimPersonnelObtainEvidenceLedgerById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM人员取证台账
 */
export function deleteBimPersonnel(params) {
  return request({
    url: `${PREFIXTHREE}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description 获取BIM考核记录列表
 */
export function getPageBimInspectRecord(data) {
  return request({
    url: `${PREFIXFOUR}getPageBimInspectRecord`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM考核记录得分列表
 */
export function getPageBimInspectRecordUnit(data) {
  return request({
    url: `${unionApiUrl}/bimInspectRecordUnit/getPageBimInspectRecordUnit`,
    method: 'post',
    data
  })
}

/**
 * @description 添加BIM考核记录列表
 */
export function insertBimInspectRecord(data) {
  return request({
    url: `${PREFIXFOUR}insertSelective`,
    method: 'post',
    data
  })
}

/**
 * @description 修改BIM考核记录列表
 */
export function updateBimInspectRecord(data) {
  return request({
    url: `${PREFIXFOUR}updateByPrimaryKeySelective`,
    method: 'post',
    data
  })
}

/**
 * @description 获取BIM考核记录列表信息
 */
export function getBimInspectRecordById(params) {
  return request({
    url: `${PREFIXFOUR}getBimInspectRecordById`,
    method: 'get',
    params
  })
}

/**
 * @description 删除BIM考核记录列表
 */
export function deleteBimInspectRecord(params) {
  return request({
    url: `${PREFIXFOUR}deleteByPrimaryKey`,
    method: 'post',
    params
  })
}

/**
 * @description 标签枚举
 */
export function getPageTypesLabel(data) {
  return request({
    url: `${unionApiUrl}/typesLabel/getPageTypesLabel`,
    method: 'post',
    data
  })
}

/**
 * @description BIM专兼职台账统计
 */
export function getBimFullPartLedgerSummary(data) {
  return request({
    url: `${PREFIX}/getListTotal`,
    method: 'post',
    data
  })
}

/**
 * @description BIM培训台账统计
 */
export function getBimTrainLedgerSummary(data) {
  return request({
    url: `${PREFIXTWO}/getListTotal`,
    method: 'post',
    data
  })
}

/**
 * @description BIM人员取证台账统计
 */
export function getBimPersonnelObtainEvidenceLedgerSummary(data) {
  return request({
    url: `${PREFIXTHREE}/getListTotal`,
    method: 'post',
    data
  })
}

/**
 * @description BIM获奖台账比赛名称树形标签
 */
export function getPageTreeLabel(data) {
  return request({
    url: `${unionApiUrl}/treeLabel/getPageTreeLabel`,
    method: 'post',
    data
  })
}

/**
 * @description BIM获奖台账标签
 */
export function getTreeLabelByBimAward(data) {
  return request({
    url: `${unionApiUrl}/treeLabel/getTreeLabelByBimAward`,
    method: 'post',
    data
  })
}
